ngl: Remove duplicate check
authorBenjamin Otte <otte@redhat.com>
Tue, 9 Mar 2021 20:05:49 +0000 (21:05 +0100)
committerBenjamin Otte <otte@redhat.com>
Mon, 15 Mar 2021 00:30:34 +0000 (01:30 +0100)
We check the extents, so there's no need to check overlap before.

gsk/ngl/gsknglrenderer.c

index 66edc98d5d98533902507a55c900474ab9cd7964..4c6a077ab3518bcbbb03d9b5f48ba9f76735e25e 100644 (file)
@@ -173,10 +173,7 @@ get_render_region (GdkSurface   *surface,
    */
   damage = gdk_draw_context_get_frame_region (GDK_DRAW_CONTEXT (context));
 
-  if (cairo_region_contains_rectangle (damage, &whole_surface) == CAIRO_REGION_OVERLAP_IN)
-    return NULL;
-
-  /* If the extents match the full-scene, do the same as above */
+  /* If the extents match the full-scene, return NULL */
   cairo_region_get_extents (damage, &extents);
   if (gdk_rectangle_equal (&extents, &whole_surface))
     return NULL;